<div id="content">
    <div id="left-box">
    </div>
    <div id="mycart-container">
        <div id="mycart-breadcumb">
            <h1>
                Checkout >
            </h1>
        </div>
        <div id="mycart-list">
            <table id="mycart-table">
                <tr>
                    <th>PRODUCTS NAME</th>
                    <th colspan="2">PRICE (@)</th>
                    <th>QTY</th>
                    <th colspan="2">PRICE (SUB)</th>
                    <th>DELETE</th>
                </tr>
                <?php $total = 0;?>
                <?php $counter = 0;?>
                <?php foreach($cart as $id=>$c):?>
                <tr>
                    <td><?php echo $c['name'];?></td>
                    <td class="mycart-list-rp">Rp</td>
                    <td class="mycart-list-price"><?php echo number_format($c['price'], 0, '', '.');?>,-</td>
                    <td class="center"><?php echo sprintf("%03d",$c['amount']);?></td>
                    <td class="mycart-list-rp">Rp</td>
                    <?php
                        $total += $c['amount']*$c['price'];
                        $counter++;
                    ?>
                    <td class="mycart-list-price"><?php echo number_format($c['amount']*$c['price'], 0, '', '.');?>,-</td>
                    <td class="mycart-list-delete"><a href="<?php echo base_url();?>cart/delete/<?php echo $id;?>">DELETE</a></td>
                </tr>
                <?php endforeach;?>
                <?php for($i=$counter;$i<30;$i++):?>
                <tr>
                    <td></td>
                    <td class="mycart-list-rp"></td>
                    <td class="mycart-list-price"></td>
                    <td class="center"></td>
                    <td class="mycart-list-rp"></td>
                    <td class="mycart-list-price"></td>
                    <td class="mycart-list-delete"></td>
                </tr>
                <?php endfor;?>
                <tr id="mycart-list-total">
                    <td colspan="3"></td>
                    <td class="center">TOTAL</td>
                    <td class="mycart-list-rp">Rp</td>
                    <td class="mycart-list-price"><?php echo number_format($total, 0, '', '.');?>,-</td>
                    <td class="mycart-list-checkout center">
                        <a href="<?php echo base_url();?>cart/registration">
                            <img src="<?php echo base_url();?>images/checkout-button.png"/>
                        </a>
                    </td>
                </tr>
            </table>
        </div>
        <div class="clear"></div>
    </div>
    <div class="clear"></div>
    <div id="footer" class="footer-cart">
        <p>ABOUT | TERMS & CONDITION</p>
        <p>©2012-2013 website design by SANROK Studio</p>
    </div>
</div>